package PhoneSIMCard;

public class Examp_2 {
    public static void main(String[] args) {
        Phone iphone=new Phone();
        SIMofChinaMobile mobile=new SIMofChinaMobile();
        mobile.setNumber("13320752377");
        iphone.setCard(mobile);
        iphone.showCard();
        SIMofChinaUnicom unicom=new SIMofChinaUnicom();
        unicom.setNumber("15680787108");
        iphone.setCard(unicom);
        iphone.showCard();
    }
}
